<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/js.vue.js"></script>
</head>
<body>
    <div id="box">
        <input type="text" ref="app">
        <ul>
            <li v-for="item in lift" ref="if">{{item}}</li>
        </ul>
    </div>
   <script>
    Vue.createApp({
        data(){
           return{
                lift:['html','js','css','baidu']
           }
        },
        mounted(){
             console.log(this.$refs.app);
             console.log(this.$refs.if)
        }
    }).mount('#box')
   </script>
</body>
</html>